namespace GemBox.Spreadsheet
{
    using System;

    public class ExcelComment
    {
        private CommentShape shape;

        internal ExcelComment()
        {
        }

        internal void SetColumn(int column)
        {
            this.shape.Column = (ushort) column;
        }

        internal void SetRow(int row)
        {
            this.shape.Row = (ushort) row;
        }

        public string Author
        {
            get
            {
                return this.shape.Author;
            }
            set
            {
                this.shape.Author = value;
            }
        }

        public bool IsVisible
        {
            get
            {
                return this.shape.IsVisible;
            }
            set
            {
                this.shape.IsVisible = value;
            }
        }

        internal CommentShape Shape
        {
            get
            {
                return this.shape;
            }
            set
            {
                this.shape = value;
            }
        }

        public string Text
        {
            get
            {
                return this.shape.Text;
            }
            set
            {
                this.shape.Text = value;
            }
        }
    }
}
